package org.example.order.infrastructure.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.order.infrastructure.po.OrderPO;

@Mapper
public interface OrderDao {
    //    @Select("select id,order_no as orderNo,org_id as orgId,org_id as orgId from eg_order where id=#{orderId} and tenant_id=#{tenantId}")
    @Select("select id,order_no,org_id,customer_id from eg_order where id=#{orderId} and tenant_id=#{tenantId}")
    OrderPO findOrderById(@Param("orderId") String orderId, @Param("tenantId") String tenantId);
}
